package com.woniuxy.service;

import com.woniuxy.entity.ExamMenu;
import com.woniuxy.entity.ResponseEntity;

public interface ExamMenuService {
    //查询所有菜单
    public ResponseEntity findAll();
    //查询所有题库
    public ResponseEntity findAll(int currentPage, int pageSize);
    //删除题库
    ResponseEntity deleteOne(int menuid);
    //修改题库
    ResponseEntity updateOne(ExamMenu examMenu);

    //新增题库
    ResponseEntity addOne(ExamMenu examMenu);
    ResponseEntity addOneNoFid(ExamMenu examMenu);

    //搜索查找
    ResponseEntity findBySearch(String name,int currentPage, int pageSize);
    //点击新增题库查找出fid为null的父级
    ResponseEntity clcAdd();
    //找出fid为不为null的，没有子级的
    ResponseEntity findCategory();
    //根据id查找
    ResponseEntity findById(int id);
    //查找所有fid
    ResponseEntity findFid();
    //学生页面查找所有考试
    ResponseEntity findAllpaper(int currentPage, int pageSize, int id);
    //搜索查询学生试卷
    ResponseEntity findAllpaperBysearch(int currentPage,int id, String name);
}
